package com.kingdee.eas.ec.garden.settle.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.eas.ec.garden.settle.GaRentSettleItemsInfo;
import com.kingdee.eas.framework.CoreBaseInfo;
import com.kingdee.eas.ec.garden.settle.GaRentSettleItemsCollection;
import com.kingdee.eas.framework.CoreBillEntryBaseCollection;
import com.kingdee.eas.ec.contract.biz.ContractSettleItemsCollection;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.ec.contract.biz.app.ContractSettleItemsControllerBean;
import com.kingdee.eas.framework.CoreBaseCollection;



public abstract class AbstractGaRentSettleItemsControllerBean extends ContractSettleItemsControllerBean implements GaRentSettleItemsController
{
    protected AbstractGaRentSettleItemsControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("DB842C40");
    }

    public GaRentSettleItemsInfo getGaRentSettleItemsInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("a4bba02a-63a0-407e-af52-0bd4e9746f89"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            GaRentSettleItemsInfo retValue = (GaRentSettleItemsInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public GaRentSettleItemsInfo getGaRentSettleItemsInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("362417b9-8aba-4d69-9dee-961e9747eb57"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            GaRentSettleItemsInfo retValue = (GaRentSettleItemsInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public GaRentSettleItemsInfo getGaRentSettleItemsInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("a2121efb-07b2-45c5-a222-c842b96ed2a2"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaRentSettleItemsInfo retValue = (GaRentSettleItemsInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public GaRentSettleItemsCollection getGaRentSettleItemsCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("8df749d8-1e1b-41bd-975d-03cffc0861a5"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            GaRentSettleItemsCollection retValue = (GaRentSettleItemsCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public GaRentSettleItemsCollection getGaRentSettleItemsCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("a098877f-757d-43d5-98bc-ca3670066f9c"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            GaRentSettleItemsCollection retValue = (GaRentSettleItemsCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public GaRentSettleItemsCollection getGaRentSettleItemsCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f67f7653-392f-4e53-9695-5c5c584afe1c"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaRentSettleItemsCollection retValue = (GaRentSettleItemsCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public ContractSettleItemsCollection getContractSettleItemsCollection (Context ctx) throws BOSException
    {
    	return (ContractSettleItemsCollection)(getGaRentSettleItemsCollection(ctx).cast(ContractSettleItemsCollection.class));
    }
    public ContractSettleItemsCollection getContractSettleItemsCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ContractSettleItemsCollection)(getGaRentSettleItemsCollection(ctx, view).cast(ContractSettleItemsCollection.class));
    }
    public ContractSettleItemsCollection getContractSettleItemsCollection (Context ctx, String oql) throws BOSException
    {
    	return (ContractSettleItemsCollection)(getGaRentSettleItemsCollection(ctx, oql).cast(ContractSettleItemsCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaRentSettleItemsCollection(ctx).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaRentSettleItemsCollection(ctx, view).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaRentSettleItemsCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getGaRentSettleItemsCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getGaRentSettleItemsCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getGaRentSettleItemsCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}